/*******************************************************************************
 * Copyright (c) 2012 Clever Devices.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 * 	Clever Devices Interns - 
 * 	Alex Frankel, Andria Young, Kevin Thomas, Nicholas Culpepper, Taner Oztimurlenk, Thomas Volberg
 ******************************************************************************/
package com.framework.customerservice;

import com.framework.cleverstop_tentative.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 * This was originally a whole other page that asked if the user wanted to 
 * use her information from her most recent trip.
 * This page was not utilized in the end product due to the replacement of its function through a dialog box.
 * This paged was replaced by the dialog box found in the lost and found page.
 * 
 * @author NCulpepper
 *
 */

public class LostUseLastTrip extends Activity {

	Button yes, no;
	TextView display;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_lostuselasttrip);

		yes.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				try {
					Class lostClass = Class.forName("com.framework.customerservice.LostReport");
					Intent lostIntent = new Intent(LostUseLastTrip.this, lostClass);
					startActivity(lostIntent);
				} catch (ClassNotFoundException e) {
					e.printStackTrace();
				}
			}
		});

		no.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				try {
					Class lostClass = Class.forName("com.framework.customerservice.LostReportEmpty");
					Intent lostIntent = new Intent(LostUseLastTrip.this, lostClass);
					startActivity(lostIntent);
				} catch (ClassNotFoundException e) {
					e.printStackTrace();
				}
			}
		});
	}
}
